package xyz.amewin.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 陈淦荣
 * @description :
 * @date 2021/5/16 9:37
 */
@Controller
public class Main {

    @RequestMapping("/test")
    @ResponseBody
    public Map test() {
        Map<String,String> maps =new HashMap<>();
        maps.put("key", "value");
        return maps;
    }
}
